<template>
  <avue-crud :data="dataSources"
             :option="formOption"
             :permission="getPermission"
  ></avue-crud>
</template>
<script>
import formOption from "@/page/test/avueForm/formOption";

export default {
  name: "pageAvueForm",
  computed: {
    formOption() {
      return formOption
    }
  },
  data() {
    return {
      dataSources: [
        {}
      ]
    }
  },
  methods: {
    getPermission(btnKey, row) {

      if (["delBtn"].includes(btnKey)) {
        console.log(btnKey, row)
        return false;
      }
      return true
    }
  }
}
</script>
<style scoped>

</style>